*{
	margin: 0;
	padding: 0;
}

/* 头像样式 */
.avatar-container {
    height: 3rem;
    width: 3rem;
    display: inline-flex;       /* 使用flex布局 */
    align-items: center;        /* 垂直居中 */
    justify-content: center;    /* 水平居中 */
    background-color: #007BFF;
    color: white;
    text-align: center;
    border-radius: 1.5rem;      /* 更简单的方式来调整边界半径 */
}

/* 头像内容样式 */
.avatar-content {
    font-size: 1.5rem;
    display: block;
}

/* 粘性导航栏样式 */
.navbar {
  list-style-type: none;
  overflow: hidden;
  background-color: #E9B384;
  position: sticky;
  top: 0;
  height: 100px;
}

.navbar li {
  float: right;
  height: 100px;
}

.navbar li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  height: 100px;
  width: 100px;
  line-height: 80px;
    font-size: 25px;
}

.navbar li a:hover {
  background-color: #9BABB8;

  
}

/* 页面布局样式 */
body {
  margin: 0;
  font-family: Arial, sans-serif;
}

#up0 {
  background-image: url(../img/dive-4219524_1280.png);
  background-size: cover;
  padding: 20px;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;

}

#up0 img {
  width: 100%;
  height:100%;
  position: relative;
  left: 20px;

}

.search-box {
    float: right;
    position: relative;
    right: 15%;
}

.search-box input[type="text"] {
    border-radius: 20px;
    padding: 8px 30px 8px 15px;
    border: 1px solid #ccc;
    transition: border-color 0.3s ease;
}

.search-box input[type="text"]:focus {
    border-color: dodgerblue;
}

.search-box button {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.search-box input:hover{
	border: 2px solid dodgerblue;
	box-shadow: 1px 1px 10px #888888;
}

.search-box button:hover {
    color: dodgerblue;
    size: ledger;
}

.login {
  position: relative;
  left: 90%;
}

.login a {
  margin-left: 10px;
  text-decoration: none;
  color: white;
}

.login a:hover{
	color: dodgerblue;

}

.login::after {
  display: table;
  clear: both;
}

#up1 {
  position: sticky;
  top: 0;
  z-index: 1;
}

#mid0 {
  height: 1000px;
  background-image:url(../img/fish-5310727_1280.png);
  background-size: cover;
  justify-content: center; /* 水平居中 */
  position: relative; /* 添加相对定位 */
}

.logo_message{
	width: 60%;
	height: 60px;
	background: #FAF0E4;
	margin: 0 auto;
	position: relative;
	top: 60px;
}

.logo_message h2{
	text-align: center;
	padding: 4px;
}
.logo_message h4{
	position: relative;
	left: 4px;
	top: -8px;
	text-shadow: 2px 2px 50px #111111;
}

#mid {
  height: 800px;
  width: 60%;
  background-color: rgba(255, 255, 255, 0.8);
  justify-content: center;
  position: relative;
  margin: 0 auto;
  overflow: hidden;
  top: 60px;
  box-shadow: 1px 1px 5px #888888;
}

#message-board {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

#message-list {
  height: 90%;
  padding: 20px;
  overflow-y: auto;
  padding: 10px;
  line-height: 300%;
  margin-left: 10%;
  font-size: 20px;
}

#message-input {
  height: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}



#user-message {
  width: 70%;
  padding: 10px;
  border: none;
  border-radius: 5px;
  margin-right: 10px;
  border-radius: 20px;
    border: 2px solid #1E90FF;
}

#submit-button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background-color: dodgerblue;
  color: white;
  cursor: pointer;
  border-radius: 20px;
}

#user-message:hover{

}


.introduction{
	width: 60%;
	height: 120px;
	letter-spacing: 2px;
	padding: 10px;
	text-align: center;
	position: relative;
	left: 20%;
	top: -20%;
	line-height: 200%;
}


.footer{
	width: 100%;
	position: relative;
	height: 100px;
	background: #7C9D96	;
	display: flex;
	justify-content: space-around;
	align-items: center;
	overflow: hidden;
}

/* 头像样式 */
.avatar-container {
    height: 3rem;
    width: 3rem;
    display: inline-flex;       /* 使用flex布局 */
    align-items: center;        /* 垂直居中 */
    justify-content: center;    /* 水平居中 */
    background-color: #007BFF;
    color: white;
    text-align: center;
    border-radius: 1.5rem;      /* 更简单的方式来调整边界半径 */
}

/* 头像内容样式 */
.avatar-content {
    font-size: 1.5rem;
    display: block;
}
